package com.lhc.bean.lifecycle;

import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @author LuHuanCheng
 * 类说明：bean销毁前调用有PreDestroy注解的方法
 */
@Component
public class PreDestroyBean {

    @PreDestroy
    public void init() {
        System.out.println("bean销毁前 有PreDestroy注解的方法被调用");
    }
}